public class Bird extends Animal {
    public Bird(String name) {
        super(name);
    }

    public void eat(String food) {
        System.out.println("我是一只小鸟");
        System.out.println(this.name + "不喜欢吃" + food);
    }

    public void fly() {
        System.out.println(this.name + "正在飞");
    }

    public static void main(String[] args) {
        Animal animal = new Bird("圆圆");
        animal.sleep("谷子");
        Bird bird = (Bird)animal;
        bird.fly();
    }
}
